from django.urls import path, re_path
from user import views

app_name = 'user'

urlpatterns = [
    path('register/', views.Register.as_view()),
    path('login/', views.Login.as_view()),
    path('info/', views.UsersInfoView.as_view({'get': 'list'})),
    re_path('info/(?P<pk>.*?)/', views.UsersInfoView.as_view({'get': 'retrieve', 'put': 'update', 'delete': 'destroy'})),
    path('friends/', views.FriendListView.as_view({'get': 'list','post':'create'})),
    path('files/', views.FilesView.as_view({'post':'create'})),
]
